// 对外暴露配置路由（常量路由）
export const constantRoute = [
    {
        path: '/',
        redirect: '/login',
        meta: {
            hidden: true
        },
    },
    {
        path: '/login',
        component: () => import('@/views/login/index.vue'),
        name: 'login',
        meta: { // 路由元信息
            title: '登录',
            icon: 'Key',
            hidden: true // 代表路由标题在菜单中是否隐藏 true：隐藏，false：不隐藏
        }
    },
    {
        path: '/home',
        redirect: '/home/List1',
        component: () => import('@/views/layout/index.vue'),
        name: 'layout',
        meta: {
            title: '快应用基础数据',
            icon: 'Briefcase',
            hidden: false
        },
        children: [
            {
                path: '/home/List1',
                component: () => import('@/views/home/formList1/index.vue'),
                meta: {
                    title: '广告点击',
                    hidden: false
                }
            },
            {
                path: '/home/List2',
                component: () => import('@/views/home/formList2/index.vue'),
                meta: {
                    title: 'ECPM',
                    hidden: false
                }
            },
            {
                path: '/home/List3',
                component: () => import('@/views/home/formList3/index.vue'),
                meta: {
                    title: '广告曝光',
                    hidden: false
                }
            },
            {
                path: '/home/pageCount',
                component: () => import('@/views/home/pageCount/index.vue'),
                meta: {
                    title: '计数统计',
                    hidden: false
                }
            },
            {
                path: '/home/modelStat',
                component: () => import('@/views/home/modelStat/index.vue'),
                meta: {
                    title: '设备型号统计',
                    hidden: false
                }
            },
            {
                path: '/home/videoStat',
                component: () => import('@/views/home/videoStat/index.vue'),
                meta: {
                    title: '视频统计',
                    hidden: false
                }
            },
            {
                path: '/home/enterPage',
                component: () => import('@/views/home/enterPage/index.vue'),
                meta: {
                    title: '用户进入页面统计',
                    hidden: false
                }
            },
            {
                path: '/home/blacklist',
                component: () => import('@/views/home/blacklist/index.vue'),
                meta: {
                    title: '黑名单列表',
                    hidden: false
                }
            },
            {
                path: '/home/amount',
                component: () => import('@/views/home/amount/index.vue'),
                meta: {
                    title: '设置',
                    hidden: false
                }
            }
        ]
    },
    {
        path: '/game',
        component: () => import('@/views/layout/index.vue'),
        name: 'game',
        meta: {
            title: '游戏模块',
            icon: 'SwitchFilled',
            hidden: false
        },
        children: [
            {
                path: '/game/list1',
                component: () => import('@/views/game/list1/index.vue'),
                meta: {
                    title: '通讯统计 (发送)',
                    hidden: false
                }
            },
            {
                path: '/game/list2',
                component: () => import('@/views/game/list2/index.vue'),
                meta: {
                    title: '通讯统计 (接收)',
                    hidden: false
                }
            },
            {
                path: '/game/list3',
                component: () => import('@/views/game/list3/index.vue'),
                meta: {
                    title: '游戏停留时长',
                    hidden: false
                }
            }
        ]
    },
    {
        path: '/404',
        redirect: '/login',
        component: () => import('@/views/404/index.vue'),
        name: '404',
        meta: {
            title: '404',
            icon: 'Link',
            hidden: true
        }
    },
    {   
        // 任意路由
        path: '/:pathMatch(.*)*',
        redirect: '/404', // 路由重定向
        name: 'Any',
        meta: {
            title: '任意路由',
            icon: 'Aim',
            hidden: true
        }
    }
]